package com.nlx.notes.module.core.enums.error;

import com.nlx.notes.module.core.consts.ErrorCodeConst;
import com.nlx.notes.support.handler.exception.ErrorCode;
import lombok.Getter;

@Getter
public enum SystemConfigCodeEnum implements ErrorCode {

    SYSTEM_CONFIG_KEY_NOT_EXISTS(1, "配置不存在"),
    ;

    private final int code;

    private final String message;

    SystemConfigCodeEnum(int code, String message) {
        this.code = ErrorCodeConst.LOGIN_ERROR_CODE_PREFIX + code;
        this.message = message;
    }

}
